﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="PhysicalSearchForm.aspx.cs" Inherits="App_Input_PhysicalSearchForm" Title="体检报告检索画面" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Panel ID="PanelNavigate" runat="server" />
    <div>
                <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="8" ForeColor="Red">
                    <cc1:CheckMaxCharLenAttribute CharLen="12" Code="E0081" ControlToValidator="txtPhysicalNo">
                        <cc1:ComAbsParamsAttribute Parameter="体检表编号" />
                        <cc1:ComAbsParamsAttribute Parameter="12" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckMaxCharLenAttribute CharLen="12" Code="E0081" ControlToValidator="txtPersonId">
                        <cc1:ComAbsParamsAttribute Parameter="人员编号" />
                        <cc1:ComAbsParamsAttribute Parameter="12" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckMaxCharLenAttribute CharLen="16" Code="E0081" ControlToValidator="txtName">
                        <cc1:ComAbsParamsAttribute Parameter="人员姓名" />
                        <cc1:ComAbsParamsAttribute Parameter="16" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckMaxCharLenAttribute CharLen="10" Code="E0081" ControlToValidator="txtDate">
                        <cc1:ComAbsParamsAttribute Parameter="登录日期" />
                        <cc1:ComAbsParamsAttribute Parameter="10" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckDateAttribute Code="E0037" ControlToValidator="txtDate" DataFormat="yyyy/mm/dd">
                        <cc1:ComAbsParamsAttribute Parameter="登录日期" />
                    </cc1:CheckDateAttribute>
                </cc1:ComValidator>
    <table width="100%">
      <tr>
        <td>
            <table class="table_border_line">
                <tr>
			    <td align="left" colspan="4" >
			        <script language="javascript">
                                        (new TitleBar('SearchBar', '体检报告检索')).showBar();
                            </script>
			    </td>						
		      </tr>				
            </table>
		    <table class="table_border_line" style="background:ffffff">
		      <tr style="display:none;">
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" class="">
                    体检表编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtPhysicalNo" runat="server" MaxLength="12"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>	
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" class="">
                    人员编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtPersonId" runat="server" MaxLength="12"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>		  
		      	<tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" class="">
                    人员姓名</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtName" runat="server" MaxLength="16"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>
		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap" class="">
                    登录日期</td>
			    <td align="left">
                    &nbsp;<asp:TextBox ID="txtDate" runat="server" MaxLength="10" onfocus="new Calendar().show(this);"></asp:TextBox>～
                    <asp:TextBox ID="txtEndDate" runat="server"  MaxLength="10" onfocus="new Calendar().show(this);" ></asp:TextBox><span class="red0">(yyyy/mm/dd)</span></td>
			    <td align="right">&nbsp;</td>						
		      </tr>				  
           </table></td>
      </tr>
      <tr>
        <td align="center">
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnAdd" runat="server" CssClass="button" Text="新建" Width="100%" OnClick="btnAdd_Click" /></td>						
                <td >
                    &nbsp;</td>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSearch" runat="server" CssClass="button" Text="检 索" Width="100%" OnClick="btnSearch_Click" /></td>						
             </tr>
          </table>    </td>
      </tr>
    </table>
        <br/>
    <table width="100%">
    </table>
    <table class="table_border_bg">
       <tr>
        <td>
            &nbsp;<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CssClass="GridView_table" DataSourceID="ObjectDataSource1"
                Width="100%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnPageIndexChanging="GridView1_PageIndexChanging">
                <Columns>
                    <asp:BoundField DataField="PersonId" HeaderText="人员编号">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Name" HeaderText="人员姓名">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NewDate" HeaderText="最新登录日期" DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:CommandField ButtonType="Image" HeaderText="详细" SelectImageUrl="~/images/info.gif"
                        SelectText="" ShowSelectButton="True">
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                        <ItemStyle CssClass="GridView_item_center" HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:CommandField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            </asp:GridView>
        </td>
       </tr>	
      </table>
    </div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindByPhyscal" TypeName="Shpm.App.Input.Dao.PhyscalDao">
        <SelectParameters>
            
            <asp:ControlParameter ControlID="txtPersonId" Name="PersonId" PropertyName="Text" DefaultValue="-1" />
            <asp:ControlParameter ControlID="txtName" Name="Name" PropertyName="Text" DefaultValue="-1" />
            <asp:ControlParameter ControlID="txtDate" Name="SendDate" PropertyName="Text" DefaultValue="-1" />
            <asp:ControlParameter ControlID="txtEndDate" Name="SendDateTo" PropertyName="Text" DefaultValue="-1" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

